// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "Main",
        enableAutoSave: false,
        entityCodeName: "AvueChildTwo",
        keyPSAppDEField: "AvueChildTwoId",
        majorPSAppDEField: "AvueChildTwoName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group1: {
            caption: "avue示例实体02基本信息",
            captionItemName: "",
            name: "group1",
            codeName: "group1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildtwoname: {
            caption: "avue示例实体02名称",
            captionItemName: "",
            name: "avuechildtwoname",
            codeName: "avuechildtwoname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "AvueChildTwoName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        formpage2: {
            caption: "其它",
            captionItemName: "",
            name: "formpage2",
            codeName: "formpage2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        group2: {
            caption: "操作信息",
            captionItemName: "",
            name: "group2",
            codeName: "group2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        createman: {
            caption: "建立人",
            captionItemName: "",
            name: "createman",
            codeName: "createman",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "CreateMan",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 3,
            convertToCodeItemText: true,
            codeListTag: "common__SysOperator",
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        createdate: {
            caption: "建立时间",
            captionItemName: "",
            name: "createdate",
            codeName: "createdate",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "YYYY-MM-DD HH:mm:ss",
            fieldCodeName: "CreateDate",
            dataType: "5",
            required: false,
            enableCond: 3,
            ignoreInput: 3,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        updateman: {
            caption: "更新人",
            captionItemName: "",
            name: "updateman",
            codeName: "updateman",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "UpdateMan",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 3,
            convertToCodeItemText: true,
            codeListTag: "common__SysOperator",
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        updatedate: {
            caption: "更新时间",
            captionItemName: "",
            name: "updatedate",
            codeName: "updatedate",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "YYYY-MM-DD HH:mm:ss",
            fieldCodeName: "UpdateDate",
            dataType: "5",
            required: false,
            enableCond: 3,
            ignoreInput: 3,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
    }
}
export const model = getModel();
